using System;
using System.Collections.Generic;
using System.Text;
using DTO;
using DAL;

namespace BUS
{
    public class tbmasoBUS
    {
        public static void Insert(tbmasoDTO maso)
        {
            tbmasoDAL tbmasoDAL = new tbmasoDAL();
            tbmasoDAL.Insert(maso);
        }
        public static void Update(tbmasoDTO maso)
        {
            tbmasoDAL tbmasoDAL = new tbmasoDAL();
            tbmasoDAL.Update(maso);
        }
        public static void Delete(int iD)
        {
            tbmasoDAL tbmasoDAL = new tbmasoDAL();
            tbmasoDAL.Delete(iD);
        }
        public static tbmasoDTOColection GET(string Where, int PageIndex, int PageSize,
                                        string OrderBy, string OrderDirection,
                                        out int TotalRecords)
        {
            tbmasoDAL tbmasoDAL = new tbmasoDAL();
            return tbmasoDAL.GET(Where, PageIndex, PageSize,
                            OrderBy, OrderDirection, out TotalRecords);
        }
    }
}
